function createImage(url) {
    if(wx.images[url]) return wx.images[url];
    let img = wx.createImage();
    img.src = url;
    wx.images[url] = img;
    return img;
}

exports.createImage = createImage;